import { create } from 'zustand'

interface State {
  bookmarks: IBookmarkUrl[];
  setBookmarks: (bms: IBookmarkUrl[]) => void;
}

export const useDataStore = create<State>((set) => ({
  bookmarks: [],
  setBookmarks: (bookmarks: IBookmarkUrl[]) => {
    set({ bookmarks })
  },
}))
